package org.example.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name="ghc-service-user",
        fallback = UserFeignClientFallback.class,path = "/user")
public interface UserFeignClient {

    @RequestMapping("/info/{token}")
    String info(@PathVariable(value = "token") String token);

}
